package org.zjsru.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "product-service", url = "http://localhost:8083")
public interface ProductFeignClient {
    @PostMapping("/product/deduct")
    String deductStock(
        @RequestParam("productId") String productId, 
        @RequestParam("count") int count
    );
} 